import { createApp } from "vue";
import App from "./App.vue";
import cookies from "js-cookie";
import store from "./stroe";
import { router } from "./router";
import { Icon } from "vant";
import { Toast } from "vant";
import { Button } from "vant";
// 授权
// import "@/permission";

cookies.set("appid", process.env.VUE_APP_WECHAT_APPID);
const app = createApp(App);
app.config.productionTip = false;

// import vConsole from "vconsole"
// var vconsole = new vConsole()

app.use(router);
app.use(store);
app.use(Icon);
app.use(Toast);
app.use(Button);
app.mount("#app");